package aigcAdminUtils

import "time"

// RedisKey枚举
type AgentRedisKey string

const (
	AGENT_REDISKEY_TASKLIST    string = "tasklist"    //任务队列
	AGENT_REDISKEY_TASKID_SEED string = "taskid_seed" //任务ID种子
	AGENT_REDISKEY_TASK_CURR   string = "task_curr"   //当前正在执行的任务id
)

func GenAgentRedisKey(agentNodeName, key string) string {
	return "agent_" + agentNodeName + ":" + key
}

func GenAgentRedisTaskKey(agentNodeName, taskId string) string {
	return GenAgentRedisKey(agentNodeName, "task:"+taskId)
}

const (
	AGENT_TASK_TIMEOUT_SEC time.Duration = 15 * 24 * time.Hour //任务超时时间
)
